#ifndef PLUGINJSONDATA_H
#define PLUGINJSONDATA_H

#include <QString>
#include <QMetaType>

enum class PluginCommand : int{
    begin,end,//PluginJsonData
    log, //QString
    error,//PluginJsonErrorData
    showpic,//url
    progress //float
};

struct PluginJsonErrorData{
    QString type;
    QString msg;
    QString file;
    QString func;
    int line;
};

struct PluginJsonData{
    QString pluginName;
    QString pluginNameCN;
    QString appName;
    QString message;
    PluginCommand command;
};

Q_DECLARE_METATYPE(PluginCommand)
Q_DECLARE_METATYPE(PluginJsonData)
Q_DECLARE_METATYPE(PluginJsonErrorData)

#endif // PLUGINJSONDATA_H
